var ClubMergeItem = Item.extend({
    _ccsFileName: res.ClubMergeItem_json,
    _clubInfo: null,
    _currentClubId: null,
    initItem: function (clubInfo, _currentClubId) {
        this._clubInfo = clubInfo;
        this._currentClubId = _currentClubId;
    },
    onEnter: function () {
        Item.prototype.onEnter.call(this);
        this._addClickListeners();
    },
    _initClickListeners: function () {
        this._clickListeners = {
            'btn_merge': '_clickMerge',
        }
    },

    refreshData: function (clubInfo) {
        this._clubInfo = clubInfo;
        this._nodeList['clubName'].setString('亲友圈名称:' + clubInfo.name);
        this._nodeList['clubId'].setString('亲友圈ID:' + clubInfo.clubId);
        loadImageToSprite(clubInfo.head, this._nodeList['head']);
    },

    _clickMerge: function () {
        var self = this;
        showMessageBox('点击确认将会想目标群发送合群申请,目标群同意后本群成员将合并进目标群!请确认是否发送合群申请', function () {
            network.send(2103, {
                cmd: ClubMsgCode.ApplyComboClub,
                old_club_id: self._currentClubId,
                club_id: self._clubInfo.clubId,
                msg_type: 'comboClub'
            });

        });
    },
});